#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import verifycode_blueprint
from api.verifyCodeResource.verifyCodeResource import VerifyCodeResource
from api.verifyCodeResource.verifyCodeOtherResource import VerifyCodeOtherResource

api = Api(verifycode_blueprint)

api.add_resource(VerifyCodeResource, '/verifyCode/<verify_code_id>', '/verifyCode', endpoint='VerifyCode')


@verifycode_blueprint.route('/verifycode/update/<verify_code_id>', methods=['PUT'], endpoint='VerifyCodeUpdate')
def update(verify_code_id):
    return VerifyCodeOtherResource.sensitive_update(verify_code_id)
